home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / JOHNLOVE / C_SOURCE / CMYBITMA.C1 < prev    next >
Text File  |  1992-01-27  |  1KB  |  53 lines

  1. /*********************************************************
  2.  "CmyBitMapPane.c"
  3.  
  4.  by John A. Love, III [Washington Apple Pi Users' Group]
  5.  
  6.  using Symantec's "THINK C", v 5.0.1
  7.  ... as derived from their "TCL Starter" files
  8.  *********************************************************/
  9.  
  10.  
  11.  
  12.  
  13. #include "CmyBitMapPane.h"
  14.  
  15.  
  16.  
  17.  
  18. void    CmyBitMapPane::ImyBitMapPane(CView *anEnclosure,
  19.                                      CBureaucrat *aSupervisor,
  20.                                      short aWidth, short aHeight,
  21.                                      short aHEncl, short aVEncl,
  22.                                      SizingOption aHSizing, SizingOption aVSizing,
  23.                                      LongRect *aBounds,
  24.                                      CmyBitMap *aBitMap,
  25.                                      Boolean makePort)        {
  26.                       
  27.                       
  28.     CPanorama::IPanorama(anEnclosure, aSupervisor,
  29.                          aWidth, aHeight,
  30.                          aHEncl, aVEncl,
  31.                          aHSizing, aVSizing);
  32.     
  33.     bounds = *aBounds;
  34.     position.h = bounds.left;
  35.     position.v = bounds.top;
  36.     
  37.     if (aBitMap == NULL)    {
  38.         itsBitMap = new (CmyBitMap);
  39.         itsBitMap->IBitMap(aBounds->right - aBounds->left,
  40.                            aBounds->bottom - aBounds->top, makePort);
  41.          itsBitMap->SetBoundsOrigin(aBounds->left, aBounds->top);
  42.     }
  43.     
  44.     else    itsBitMap = aBitMap;
  45.     
  46.     autoRefresh = FALSE;
  47.     
  48. }    /* ImyBitMapPane */
  49.  
  50.  
  51.  
  52.  
  53. /* end: "CmyBitMapPane.c" */